package com.qububu.play.dineTogether.dto;

import com.qububu.utils.DateUtil;
import com.qububu.utils.SystemUtil;

public class ActionInfoDto {

	private String actionId;
	private String actionTitle;
	private String actionPicUrl;
	private String content;
	private float useMoney;
	private int beginTime;
	private int endTime;
	private int publishTime;
	private int peopleNum; 
	private String authorName;
	private PositionDto position;
	
	public String getActionId() {
		return actionId;
	}
	
	public String getActionTitle() {
		return actionTitle;
	}
	public void setActionTitle(String actionTitle) {
		this.actionTitle = actionTitle;
	}
	public String getActionPicUrl() {
		return actionPicUrl;
	}
	public void setActionPicUrl(String actionPicUrl) {
		this.actionPicUrl = actionPicUrl;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public float getUseMoney() {
		return useMoney;
	}
	public void setUseMoney(float useMoney) {
		this.useMoney = useMoney;
	}
	public int getBeginTime() {
		return beginTime;
	}
	public void setBeginTime(int beginTime) {
		this.beginTime = beginTime;
	}
	public int getEndTime() {
		return endTime;
	}
	public void setEndTime(int endTime) {
		this.endTime = endTime;
	}
	public int getPublishTime() {
		return publishTime;
	}

	public void setPublishTime(int publishTime) {
		this.publishTime = publishTime;
	}
	public int getPeopleNum() {
		return peopleNum;
	}
	public void setPeopleNum(int peopleNum) {
		this.peopleNum = peopleNum;
	}
	public String getAuthorName() {
		return authorName;
	}
	public void setAuthorName(String authorName) {
		this.authorName = authorName;
	}
	
	/**
	 * @功能 时间处理
	 */
	public String showEndTimeInString() {
		return DateUtil.formatDTString(endTime);
	}
	public String showBeginTimeInString() {
		return DateUtil.formatDTString(beginTime);
	}
	public String showPublishTimeInString() {
		return DateUtil.formatDTString(publishTime);
	}
	
	/**
	 * @功能 id处理
	 */
	public ActionInfoDto(String actionId){
		this.actionId = actionId;
	} 
	public ActionInfoDto(long actionId){
		this.actionId = SystemUtil.encrypt(String.valueOf(actionId));
	}

	public PositionDto getPosition() {
		return position;
	}

	public void setPosition(PositionDto position) {
		this.position = position;
	}

}
